<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: ServerFactory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_server_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">ServerFactory类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>服务端类工厂  
 <a href="class_server_factory.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a>&gt;</code></p>
<div class="dynheader">
类 ServerFactory 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_server_factory.png" usemap="#ServerFactory_map" alt=""/>
  <map id="ServerFactory_map" name="ServerFactory_map">
<area href="class_service_factory.html" title="服务类工厂基类" alt="ServiceFactory" shape="rect" coords="0,0,100,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aee6cb1d71fc56ecb7b69a285b4eb8f09"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_service.html">Service</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server_factory.html#aee6cb1d71fc56ecb7b69a285b4eb8f09">GetServer</a> ()</td></tr>
<tr class="memdesc:aee6cb1d71fc56ecb7b69a285b4eb8f09"><td class="mdescLeft">&#160;</td><td class="mdescRight">生产一个server,默认使用new <a class="el" href="class_server.html">Server</a>  <a href="class_server_factory.html#aee6cb1d71fc56ecb7b69a285b4eb8f09">更多...</a><br /></td></tr>
<tr class="separator:aee6cb1d71fc56ecb7b69a285b4eb8f09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a830d59f1d7bf02571b6f5a5c88dbe1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_server_factory.html#a6a830d59f1d7bf02571b6f5a5c88dbe1">ReleaseServer</a> (<a class="el" href="class_service.html">Service</a> *s)</td></tr>
<tr class="memdesc:a6a830d59f1d7bf02571b6f5a5c88dbe1"><td class="mdescLeft">&#160;</td><td class="mdescRight">回收一个server,默认delete <a class="el" href="class_server.html">Server</a>  <a href="class_server_factory.html#a6a830d59f1d7bf02571b6f5a5c88dbe1">更多...</a><br /></td></tr>
<tr class="separator:a6a830d59f1d7bf02571b6f5a5c88dbe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_service_factory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_service_factory')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_service_factory.html">ServiceFactory</a></td></tr>
<tr class="memitem:a514db0fcdbce4e218e544d3ea3673fb5 inherit pub_methods_class_service_factory"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service_factory.html#a514db0fcdbce4e218e544d3ea3673fb5">ServiceFactory</a> ()</td></tr>
<tr class="separator:a514db0fcdbce4e218e544d3ea3673fb5 inherit pub_methods_class_service_factory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fccf8deac202cec300caf2068aa4ff1 inherit pub_methods_class_service_factory"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service_factory.html#a9fccf8deac202cec300caf2068aa4ff1">~ServiceFactory</a> ()</td></tr>
<tr class="separator:a9fccf8deac202cec300caf2068aa4ff1 inherit pub_methods_class_service_factory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>服务端类工厂 </p>
<dl class="section remark"><dt>备注</dt><dd>任何使用该框架的服务架构可选择继承此类，然后传入服务池中 </dd></dl>

<p class="definition">在文件 <a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a> 第 <a class="el" href="_class_factory_8h_source.html#l00048">48</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aee6cb1d71fc56ecb7b69a285b4eb8f09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee6cb1d71fc56ecb7b69a285b4eb8f09">&#9670;&nbsp;</a></span>GetServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> <a class="el" href="class_service.html">Service</a> * ServerFactory::GetServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>生产一个server,默认使用new <a class="el" href="class_server.html">Server</a> </p>

<p>实现了 <a class="el" href="class_service_factory.html#ad325b9a50a3be97065877c4e4c2d3467">ServiceFactory</a>.</p>

<p class="definition">在文件 <a class="el" href="_class_factory_8cpp_source.html">ClassFactory.cpp</a> 第 <a class="el" href="_class_factory_8cpp_source.html#l00011">11</a> 行定义.</p>

</div>
</div>
<a id="a6a830d59f1d7bf02571b6f5a5c88dbe1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a830d59f1d7bf02571b6f5a5c88dbe1">&#9670;&nbsp;</a></span>ReleaseServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ServerFactory::ReleaseServer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_service.html">Service</a> *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>回收一个server,默认delete <a class="el" href="class_server.html">Server</a> </p>
<p>回收一个server </p>

<p>实现了 <a class="el" href="class_service_factory.html#a7f89020ad02e5e83909fe8fd0f02ebb4">ServiceFactory</a>.</p>

<p class="definition">在文件 <a class="el" href="_class_factory_8cpp_source.html">ClassFactory.cpp</a> 第 <a class="el" href="_class_factory_8cpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/framework/tcp/<a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a></li>
<li>H:/project/LibTools/src/framework/tcp/<a class="el" href="_class_factory_8cpp_source.html">ClassFactory.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
